﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using D2DEngine;
using Microsoft.Xna.Framework;
using D2DEngine.AI;

namespace D2DEngine.Components.AI
{
    public class ChaseBehavior : D2DBehavior
    {
        private D2DSceneObject target;

        public ChaseBehavior() : base()
        {
        }

        public ChaseBehavior(D2DSceneObject target) : base()
        {
            this.target = target;
        }

        public override void Update(GameTime gameTime)
        {
            TurnToFace(this.target.Position, 0.15f);
        }



    }
}
